﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Inventory_Management
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        public static MainGUI mainGUI = new MainGUI();
        public static Inventory inventory = new Inventory();
        public static InventoryAdd invAdd = new InventoryAdd();
        public static InventoryGUI invGUI = new InventoryGUI();


        static void Main()
        {
            Application.EnableVisualStyles();
            try
            {
                Application.SetCompatibleTextRenderingDefault(false);
            }
            catch (Exception) { 
            
            }

            inventory.Hide();
            invAdd.Hide();
            Application.Run(mainGUI);
        }

        public static void mainGUIActive() {
            mainGUI.Show();
            invAdd.Hide();
            invGUI.Hide();
        }

        public static void invAddActive() {
            mainGUI.Hide();
            invAdd.Show();
            invGUI.Hide();
        }

        public static void invGUIActive() {
            mainGUI.Hide();
            invAdd.Hide();
            invGUI.Show();
        }

        public static void closeAll() {
            mainGUI.Close();
            invAdd.Close();
            inventory.Close();
            invGUI.Close();
        }
    }
}
